<?php

namespace App\Exports;

use App\Models\ProductLog;
use Maatwebsite\Excel\Concerns\FromCollection;

class ProductLogExport implements FromCollection
{
    /**
    * @return \Illuminate\Support\Collection
    */
    public function collection()
    {
        return ProductLog::all();
    }
    public function headings():array
    {
        return[
            '商品浏览量',
            '商品访客数',
            '加购件数',
            '下单件数',
            '支付件数',
            '支付金额',
            '成本金额',
            '退款金额',
            '退款件数',
            '访客-支付转化率',
        ];
    }
}
